home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 010a / easyfb.zip / EASYFB.DOC < prev    next >
Text File  |  1991-03-26  |  11KB  |  199 lines

  1.  
  2.  
  3.  
  4.                       EASYFB -- to simplify using FASTBACK!
  5.         
  6.         A  friend who works at the same college as I do,  uses  Fastback. 
  7.         She  asked  me  to help automate her backups  because  she  found 
  8.         Fastback inconvenient  to use. No wonder! It turned out that  she 
  9.         always went through a full  menu selection each time she used it. 
  10.         Since  I did not use Fastback myself, I had to experiment  a  bit 
  11.         before  I could help her. The first thing I was able to show  her 
  12.         was how to save "setup files" for the three kinds of backups  and 
  13.         for a restore. This may be a simple concept to seasoned  Fastback 
  14.         users but she wasn't aware of it.
  15.         
  16.         We "set-up" a "Full Backup" of drive C: and performed it. When it 
  17.         was over, instead of selecting "Quit to DOS" we went to "Options" 
  18.         and then "Save Setup File F10". That wrote the settings to a disk 
  19.         file that we called "FULL.FB" (the default is STARTUP.FB).  Right 
  20.         after that we selected to perform a "Differential" backup without 
  21.         changing  any  other settings. After it was over we  saved  those 
  22.         settings  in a setup file called "DAILY.FB". We did the same  for 
  23.         an "Incremental" backup  and named that file "INCR.FB".  Finally, 
  24.         we set up and performed a restore and named the file (you guessed 
  25.         it!) RESTORE.FB. 
  26.         
  27.         From  then  on she would simply change to  C:\FASTBACK  and  type 
  28.         "FB".  When the Fastback menu appeared she would go to  "Options" 
  29.         and  select  "Load Setup File F9". In response to  a  setup  file 
  30.         name,  she would type "DAILY.FB" (or any one of the other  "setup 
  31.         files" which we had named). It was still necessary to select menu 
  32.         choices  that told Fastback to perform a Backup (or Restore)  and 
  33.         to quit, but even so, it was far more convenient.
  34.         
  35.         I  realized  later  that  Fastback  provides  two  files   called 
  36.         BACKUP.BAT  and RESTORE.BAT. They execute Fastback with  settings 
  37.         contained  in a file called STARTUP.FB. I wrote four batch  files 
  38.         with  the same names as the setup files and placed them into  the 
  39.         C:\BAT sub-directory. The file called "FULL.BAT" looks like this.
  40.         
  41.                   1 @ECHO OFF
  42.                   2 CLS
  43.                   3 CD\FASTBACK
  44.                   4 COPY FULL.FB STARTUP.FB
  45.                   5 BACKUP
  46.         
  47.         DAILY.BAT  and  INCR.BAT were exactly the same except for line  3 
  48.         where  "FULL" became "INCR" or "DAILY".  The fourth  file  called 
  49.         RESTOR.BAT (to avoid conflict with Fastback's) looked like this.
  50.         
  51.                   1 @ECHO OFF
  52.                   2 CLS
  53.                   3 CD\FASTBACK
  54.                   4 COPY RESTORE.FB STARTUP.FB
  55.                   5 RESTORE
  56.         
  57.         N.B.  In  order  to  avoid conflicts  with  DOS'  BACKUP.COM  and 
  58.         RESTORE.COM, I renamed those as BACKUP.OLD and RESTORE.OLD.
  59.         Depending  on her requirements, she now only had to type  any  of 
  60.         "FULL",  "DAILY", or "INCR" at the DOS prompt. (Fortunately,  she 
  61.         never had to use "RESTOR".) The .BAT  file changed the directory, 
  62.         renamed  the  appropriate "Setup File" as  "STARTUP.FB"  and  ran 
  63.         "BACKUP"  (which  calls Fastback with the settings)  all  without 
  64.         other  intervention. It was very convenient for her and she  soon 
  65.         established a simple routine for Fastback backups.
  66.         
  67.         a) A FULL backup (repeated monthly.)
  68.         b) DAILY -- a differential ("DAILY") backup until the numbers  of 
  69.            diskettes became too many and the process too time-consuming.
  70.         c) Periodically she ran INCR.BAT to append files changed or added 
  71.            since the last "FULL" backup. That lessened time spent on b).
  72.         d) RESTORE waited the day when it was to be needed.
  73.         
  74.         
  75.                                   HOW TO DO IT
  76.         
  77.         The  archive  EASYFB.ZIP  should contain the  files listed here.
  78.         
  79.              FULL.BAT          
  80.              DAILY.BAT      <= Copy these files into C:\BAT
  81.              INCR.BAT          or a directory on the DOS path.
  82.          RESTOR.BAT
  83.              EASYFB.BAT
  84.  
  85.         
  86.              FULL.FB
  87.              DAILY.FB       <= Copy these files into C:\FASTBACK or 
  88.              INCR.FB           the directory containing Fastback, 
  89.              RESTORE.FB         *** if you have a 1.2 Meg Drive A:. ***
  90.         
  91.              EASYFB.EXE        (QB 4.5 Menu program) 
  92.              EASYFB.DOC        (What you are reading now)
  93.         
  94.         *****************************************************************
  95.         The ".FB" files included here are settings (High DMA) for a 
  96.         12  MHz AT equipped with a 1.2 Meg floppy disk drive A:. If  your 
  97.         machine is so equipped, you may be able to "copy and go"  without 
  98.         the  need for creating any "Setup File(s)".  Go directly to  step 
  99.         5) or to use the EASYFB menu, the section "GETTING FANCY" .
  100.         *****************************************************************
  101.         
  102.         If  you don't have a 1.2 Meg drive A:, you will have to run  "FB" 
  103.         to save the setup (.FB) files for your system. Here is how to  do 
  104.         that.
  105.         
  106.         1) Set up Fastback to perform a FULL backup with your system. You 
  107.            will  need to select most of these options only once, so  take 
  108.            your time. Perform the backup and when it is done, quit to the 
  109.            Main  Menu  but don't select "Quit to  DOS"!  Instead,  select 
  110.            "Options" then select "Save Setup File F10" by pressing F10 or 
  111.            by  pressing  enter on that option. When prompted for  a  file 
  112.            name, you respond with "FULL.FB". 
  113.         2) Immediately, select a DIFFERENTIAL backup without changing any 
  114.            other settings. Put another diskette into your drive A:. Don't 
  115.            worry  that there's nothing to back up just now, let  Fastback 
  116.            go  as  if there were. Just as before, save  the  settings  by 
  117.            selecting "Options" then pressing F10 or by press enter on the 
  118.            "Save Setup File F10" option and save the file  as "DAILY.FB". 
  119.         
  120.         3) Now  set up the third ".FB" file using the INCREMENTAL  backup 
  121.            option. Don't make any other changes. Follow the same  process 
  122.            as already described and name the third file "INCR.FB". 
  123.         
  124.         4) As  a final step select RESTORE, and change whatever  settings 
  125.            you  need to. Leave the diskette that you used in step  3)  in 
  126.            place. Then perform the restore which won't take long at  all. 
  127.            Use "Options" with F10 to name the file as "RESTORE.FB".
  128.         
  129.         5) Copy  the batch files BU.BAT, FULL.BAT,  DAILY.BAT,  INCR.BAT, 
  130.            RESTORE.BAT into your \BAT sub-directory.
  131.         
  132.         You've just performed a "FULL" backup. Safely store the diskettes 
  133.         in this set. From day-to-day,  run "DAILY" to write  differential 
  134.         backups  to the same diskette(s) until their numbers  become  too 
  135.         many. A differential backup copies "all" files that have  changed 
  136.         or  have  been created since the last full backup.  It  does  not 
  137.         reset  the  archive bit. That means  the same files you  back  up 
  138.         today  will  also  be  backed up  tomorrow  (along  with  any  of 
  139.         tomorrow's  new  files  of  course.)  Eventually  more  and  more 
  140.         diskettes  will be needed and so the process will  become  longer 
  141.         and longer. 
  142.         
  143.         When  the "DAILY" process begins to take too long (there are  too 
  144.         many diskettes in the set) run "INCR". INCR.BAT sets up  Fastback 
  145.         to perform an INCREMENTAL backup. It backs up any changed or  new 
  146.         files (same as the "DAILY" option) and adds the diskette(s)  from 
  147.         this  backup to the last "FULL" set. For example, if you used  11 
  148.         diskettes to perform the last "FULL" backup then "INCR" will  set 
  149.         up  Fastback so that it requests diskette(s) beginning at  number 
  150.         12  which  it "appends" (i.e. adds to) the last  "FULL"  set.  As 
  151.         well,  an incremental backup resets the backed up files'  archive 
  152.         bits. Store these diskettes in order with your last "FULL" set.
  153.         
  154.         When you are ready to do another FULL backup, type "FULL" at  the 
  155.         DOS  prompt  and  away  you go. Should  you  ever  need  it,  the 
  156.         "RESTORE" batch file will help make a restore equally simple.
  157.         
  158.         
  159.                                   GETTING FANCY
  160.         
  161.         To  make  the process even more convenient, I wrote my  friend  a 
  162.         Menu called "EASYFB.EXE". This is a Quick Basic 4.5 program  that 
  163.         permits  one key selection to perform any of the three  different 
  164.         backups  or  to  restore  drive C:. There  are  five  choices  (3 
  165.         backups,  1  restore  and  quit  to DOS).  If  you  want  to  use 
  166.         EASYFB.EXE  then  copy  it into your \BAT  sub-directory  or  one 
  167.         that's  on the DOS path. 
  168.         Alternatley,  you  can  copy EASYFB.EXE  into  your   C:\FASTBACK 
  169.         directory if you have copied the file EASYFB.BAT into your C:\BAT 
  170.         sub-directory. Follow the instructions for saving setup files  as 
  171.         explained earlier. If you're lucky you might be able to use those 
  172.         provided.  In  any  case,  you  must  have  settings  for   full, 
  173.         incremental  and differential backups and a restore in the  files  
  174.         called "FULL.FB", "INCR.FB", "DAILY.FB" and "RESTORE.FB". If  you 
  175.         have to create them, name the files exactly as spelled.
  176.         
  177.         After  that,  it's easy. No need to worry about  the  other  .BAT 
  178.         files  described earlier! Just type "EASYFB" at the  DOS  prompt, 
  179.         and make your selection from the menu that appears. Depending  on 
  180.         your  choice, EASYFB.EXE changes the directory   to  C:\FASTBACK, 
  181.         copies  the  appropriate .FB file to  STARTUP.FB,  then  executes 
  182.         "BACKUP"  (or  "RESTORE").  After  Fastback  has  completed  your 
  183.         selection, you will automatically be returned to the EASYFB menu.
  184.         
  185.         These  routines are provided to the Public Domain as is. (No  fee 
  186.         is  requested, nor solicited.) They are being used in both forms. 
  187.         So far I haven't heard of problems. If  you have any suggestions,
  188.         please drop me a line. 
  189.         
  190.         
  191.                                       Werner Funkenhauser
  192.                                       403-75 Silvercreek Parkway N.
  193.                                       Guelph, Ont., Canada M1H 7R9
  194.         
  195.                                       1991/03/12
  196.  
  197.  
  198.  
  199.